package db;

import org.smallframework.spring.path.SpringClassPathScanning;
import sf.spring.core.io.Resource;

import java.io.IOException;
import java.util.Arrays;
import java.util.Set;

public class Scanning {
    public static void main(String[] args) {
        Set<Resource> sets = SpringClassPathScanning.getResources(null, Arrays.asList("classpath*:sql/**/*.sql"));
        for (Resource r:sets){
            try {
                System.out.println(r.getFile());
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
